<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="__PUBLIC__/css/base.css" type="text/css" rel="stylesheet" />

<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<script src="__PUBLIC__/js/util.js" type="text/javascript"></script>
<title>多彩气质宝贝-国际化儿童早教机构</title>
<script type="text/javascript" language="javascript">


function saveComment(){
	//

	$.post('__URL__/saveBlogComment',
    	    {	
	    	    'id':"{$info['id']}",	    	    
	    	    'content':$('#commentcontent').val(),
	    	},
			    function(data){
					alert(data.info);					
					$('#comment').prepend(
							"<div class='w92auto border-d-b p10'>"+
							"<p class='mT20 mB10'><span class='blue'>"+
							"{$_SESSION[C('USER_AUTH_KEY')]}"+
							"</span><span class='fontGray6'>于</span>"+
							getCurrentTime()+
							"<span class='fontGray6'>发表</span></p>"+							
							"<p>"+$('#commentcontent').val()+"</p>"+
							"</div>");
					//$('#commentcontent').empty();	
					$("#commentcontent").attr("value",'');
			    },
		    'json');	
}
</script>
</head>

<body onload="menu0display()">





<include file="./Tpl/default/Index/header.html" />
<!----------------------contain begin------------------------->
<div id="contain" class="w950 clear mT10">
<div class="w92auto mT10">
<p class="font22 p10 lineB fontbold" align="center">{$info['title']}</p>
<p align="center" class="fontGray9 p5">作者：{$info['user']}&nbsp;&nbsp;&nbsp;
发布时间：{$info['createdate']}</p>


<!--------article begin---------->


<div id="article-con">{$info['content']}</div>
<!--------article end----------></div>

<div class="clear"></div>

</div>

<div class="border-s-Orange p10 w92auto">

<div class="font14 fontbold lineB p5 blue">&raquo;对当前文章的评论</div>
<!-- 查询评论 -->
<div id="comment">
	<volist name="comment_list" id="comment_vo">
	<div class="w92auto border-d-b p10">
		<p class="mT20 mB10"><span class="blue">{$comment_vo['comment_user']} </span><span class="fontGray6">于</span> {$comment_vo['createdate']} <span class="fontGray6">发表</span></p>
		<p>{$comment_vo['content']}</p>
	</div>
	</volist>
</div>

<!-- blog评论 -->

<present name="_SESSION[C('USER_AUTH_KEY')]">
<div class="font14 fontbold lineB p5 blue mT20">&raquo;立即发表评论</div>
<if condition="($info['commentright'] eq 1)">
	
<dl class="mT10 mB10 mL10">
	<dt class="fLeft">用&nbsp;户&nbsp;名：</dt>
	<dd><span class="blue">{$_SESSION[C('USER_AUTH_KEY')]}</span></dd>
	<dd class="mT10"><textarea id="commentcontent" rows="6" cols="50" style="width:70%;"></textarea>
	</dd>
</dl>

<input style="height:30px;width:80px;background-color:#00659f;cursor:pointer;" class="lineBorder white fontbold mB10 mL10" type="button" onclick="saveComment();" value="提交评论" /> *
以上用户言论只代表其个人观点，不代表多彩宝贝网站的观点或立场 <else /> </if>
<else />
<div class="font14 fontbold lineB p5 blue">&raquo;您尚未登陆，无法进行评论！</div>

</present>

</div>

<!----------------------contain end------------------------->
<include file="./Tpl/default/Index/footer.html" />
</body>
</html>
